package com.sanyuan.cloud.module.system.controller.app.position.req;

import com.sanyuan.cloud.module.system.annotation.QueryGroup;
import com.sanyuan.cloud.module.system.annotation.UpdateGroup;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;

/**
 * @Description: 拜访信息Req
 * @Author: wuyuwei
 * @Date: 2025/4/3
 */
@Schema(description = "小程序-拜访信息")
@Data
public class VisitReqVO {

    @Schema(description = "标点id", example = "1024")
    @NotBlank(message = "标点id不能为空",groups = {UpdateGroup.class})
    private String id;

    @Schema(description = "用户id", example = "1024")
    @NotBlank(message = "用户id不能为空",groups = {QueryGroup.class})
    private String userId;

    @Schema(description = "开始日期", example = "2025-04-03")
    @NotNull(message = "开始日期不能为空",groups = {QueryGroup.class})
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate startDate;

    @Schema(description = "结束日期", example = "2025-04-04")
    @NotNull(message = "结束日期不能为空",groups = {QueryGroup.class})
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endDate;

    @Schema(description = "备注", example = "备注")
    private String remark;

    @Schema(description = "拜访状态", example = "0")
    @NotNull(message = "拜访状态不能为空",groups = {UpdateGroup.class})
    private Integer status;
}
